<?php 
defined( 'BASEPATH') OR exit( 'No direct script access allowed');

//目前member暂时只有coach
        $member_id = '0';
        if(!isset($_COOKIE['member_id'])){
              
        }else{
            if($_COOKIE['member_id']!=''){
                $member_id = $_COOKIE['member_id'];
            }
        }


?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>
                训练日-全新运动约练平台
            </title>
            <meta name="keywords" content="训练日">
            <meta name="description" content="训练日">
            <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
            <script type="text/javascript" src='/include/layer.m.js'>
            </script>
            <link href="/include/web_main.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript" src="/js/jquery.1.10.1.min.js">
            </script>
            <script type="text/javascript" src="/bootstrap/js/bootstrap.js">
            </script>
        </head>
        
        <body>
            <div style="width:1000px; margin:auto; height:100px;position:relative;">
                <div style="top:10px;left:0px; position:absolute;">
                    <a href="/">
                        <img src="/images/logos.png">
                    </a>
                </div>
                <div style="position:absolute; top:40px; right:20px;">
 
            <?php if($member_id=='0'): ?>

 
             <?php else: ?>

                  <button type="button" id="logoutBtn" class="btn btn-link">退出登录</button>
 
              <?php endif ?>




                </div>
            </div>
            <script type="text/javascript">
                $('document').ready(function() {
                    $('#logoutBtn').bind("click",
                    function() {

                        layer.open({
                            content: '确定要退出吗?',
                            btn: ['确认', '取消'],
                            shadeClose: false,
                            yes: function() {
                                location.href = "/index.php/coach/logout_handle";

                                layer.closeAll();
                            },
                            no: function() {
                                layer.close();
                            }
                        });
                    });
                });
            </script>